import request from "@/utils/request";

// 查询项目配置列表
export function listSet(query) {
  return request({
    url: "/cld/set/list",
    method: "get",
    params: query,
  });
}

// 查询项目配置详细
export function getSet(projectId) {
  return request({
    url: "/cld/set/" + projectId,
    method: "get",
  });
}

// 查询项目配置详细
export function getProjectSet(projectId) {
  return request({
    url: "/cld/set/getProjectSet/" + projectId,
    method: "get",
  });
}

// 新增项目配置
export function addSet(data) {
  return request({
    url: "/cld/set",
    method: "post",
    data: data,
  });
}

// 修改项目配置
export function updateSet(data) {
  return request({
    url: "/cld/set",
    method: "put",
    data: data,
  });
}

// 删除项目配置
export function delSet(projectSetId) {
  return request({
    url: "/cld/set/" + projectSetId,
    method: "delete",
  });
}
